package com.topten.basicas.organizacional;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="TB_Gestor")
@PrimaryKeyJoinColumn(name="codigo")
public class Gestor extends Funcionario {

	public Gestor(){
		
		this.tipoGestor = new TipoGestor();
	}
	
	@ManyToOne @JoinColumn(nullable=false, name="tipo_gestor")
	private TipoGestor tipoGestor;

	public TipoGestor getTipoGerencia() {
		return tipoGestor;
	}

	public void setTipoGerencia(TipoGestor tipoGestor) {
		this.tipoGestor = tipoGestor;
	}
}
